<div class="b-topBar">
    <div class="b-topBar__main l-center">
        <if condition="$userid neq ''">
            <div class="b-topBar__item b-topBar__item_first">
                {$userinfo.nickname} 您好,
                <a href="__WEBURL__/user/index/sysmsg">站内消息<if condition="$sysmsgnum neq 0"><i>({$sysmsgnum})</i></if></a> |
                <a href="__WEBURL__/u/{$userinfo.openuid}">个人主页</a> |
                <a href="{:U('/user/index/')}">我的账户</a> |
                <a href="{:U('/user/bake/worksadd')}"><em>发布作品</em></a> |
                <a href="{:U('/user/index/logout')}">退出登录</a>
            </div>
            <else/>
            <div class="b-topBar__item b-topBar__item_first">
                <a href="{:U('/user/login/login?type=qq')}">
                    <img class="pic_mid" src="__IMAGES__/icon_top_qq.png">
                    <span>QQ登录</span>
                </a>
            </div>
            <div class="b-topBar__item">
                <a href="{:U('/user/login/login?type=sina')}">
                    <img class="pic_mid" src="__IMAGES__/icon_top_weibo.png">
                    <span>微博登录</span>
                </a>
            </div>
            <div class="b-topBar__item">
                <a href="__WEBURL__/user/login">
                    <span>登录</span>
                </a>
            </div>
            <div class="b-topBar__item">
                <a href="__WEBURL__/user/login/register">
                    <span>注册</span>
                </a>
            </div>
        </if>
    </div>
</div>
<div class="b-header l-center">
    <a href="__WEBURL__"><img class="b-header__logo" src="__IMAGES__/logo.jpg"></a>
    <div class="b-header__search">
        <form onsubmit="return false" name="searchForm">
        <div class="b_search">
            <div class="b_search__list">
                <a href="javascript:;" class="b_search__showItem" id="search_type" data="1">作品</a>
                <ul class="b_search__itemList">
                    <li class="b_search__item current" data-type="1">作品</li>
                    <li class="b_search__item" data-type="2">会员</li>
                </ul>
            </div>
            <div class="b_search__input">
                <input type="text" value="" id="keywords">
                <div class="b_search__placeholder">搜索作品、用户…</div>
            </div>
            <input type="submit" class="b_search__btn" value="搜索"/>
        </div>
            </form>
    </div>
</div>
<div class="b-nav">
    <div class="b-nav__main l-center">
        <foreach name="trynav" item="nv">
            <a href="__WEBURL__/try/{$nv.link}" class="b-nav__item{$nv.act}">{$nv.title}</a>
        </foreach>
        <a href="__WEBURL__/try/baoming" class="b-nav__baoming"><img class="pic_mid" src="__IMAGES__/shiyong/shangjiabaoming.png" alt="">商家报名入口</a>
    </div>
</div>
